<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>默认首页</title>
</head>
<body>
<h3>SpringMVC框架的 RestFul风格的URL介绍</h3>
<fieldset>
    <h4>查询, get</h4>
    <a href="${pageContext.request.contextPath}/user/1">Get测试</a>
</fieldset>

<fieldset>
    <h4>增加, post</h4>
    <form action="${pageContext.request.contextPath}/user/1" method="post">
        <input type="submit" value="post测试">
    </form>
</fieldset>

<fieldset>
    <h4>更新, put</h4>
    <form action="${pageContext.request.contextPath}/user/1" method="post">
        <input type="hidden" name="_method" value="put">
        <input type="submit" value="put测试">
    </form>
</fieldset>

<fieldset>
    <h4>删除, Delete</h4>
    <form action="${pageContext.request.contextPath}/user/1" method="post">
        <input type="hidden" name="_method" value="DELETE">
        <input type="submit" value="DELETE测试">
    </form>
</fieldset>

</body>
</html>
